package com.ext.portlet.registration.service.impl;

import java.rmi.RemoteException;
import java.util.List;

import com.ext.portlet.registration.model.CollStudent;
import com.ext.portlet.registration.model.Student;
import com.ext.portlet.registration.service.base.CollStudentLocalServiceBaseImpl;
import com.ext.portlet.registration.service.persistence.CollStudentUtil;
import com.ext.portlet.registration.service.persistence.StudentUtil;
import com.liferay.portal.PortalException;
import com.liferay.portal.SystemException;


public class CollStudentLocalServiceImpl extends CollStudentLocalServiceBaseImpl {
	
	public List<CollStudent> getAllCollStudents()
	throws PortalException, SystemException, RemoteException {		
	
	return collStudentPersistence.findAll();
	}
	
	public List<CollStudent> getByStatus(Integer status) 
		throws SystemException {	
		
	return CollStudentUtil.findByStatus(status);
	}	
	
	public CollStudent collStudentValidation(Long collegeId, String rollNo) 
		throws SystemException{		
		
		 return collStudentPersistence.fetchByCollStudentValidation(collegeId, rollNo);		
	}	
	
	public CollStudent getByLoginId(String loginId) throws SystemException{		
		
		return CollStudentUtil.fetchByLoginId(loginId);
	}
	
	/*public CollStudent getByCollegeIdRollNo(Long collegeId,String rollNo) throws SystemException{		
		
		return CollStudentUtil.fetchByCollegeIdRollNo(collegeId,rollNo);
	}
	*/
	
	public  List<CollStudent> getByCollStudentAndStatus(Long collegeId, Integer status) 
	       throws SystemException {		

       return collStudentPersistence.findByCollegeIdandStatus(collegeId, status);		
}	
}
